package com.lagou.demo.controller;

import com.lagou.edu.mvcframework.annotation.LagouController;
import com.lagou.edu.mvcframework.annotation.LagouRequestMapping;
import com.lagou.edu.mvcframework.annotation.LagouSecurity;

@LagouRequestMapping("/security")
@LagouController
@LagouSecurity({"zhangsan","lisi"})
public class SecurityController {

    @LagouSecurity({"zhangsan"})
    @LagouRequestMapping("/handle01")
    public String handle01(String userName){
        return userName;
    }

    @LagouSecurity({"lisi"})
    @LagouRequestMapping("/handle02")
    public String handle02(String userName){
        return userName;
    }

    @LagouRequestMapping("/handle03")
    public String handle03(String userName){
        return userName;
    }

}
